package com.neusoft.nep.GridOfficer;

import com.neusoft.nep.GridOfficer.entity.Officer;
import com.neusoft.nep.common.FileUtils;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;

import javafx.stage.Stage;

import java.net.URL;
import java.util.HashMap;
import java.util.Map;

public class UiDemo1 extends Application {
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage stage) throws Exception {




        //从一个fxml文件中加载视图
        FXMLLoader fxmlLoader = new FXMLLoader();
        //为fxmlLoader设置要加载的fxml路径
        URL url = getClass().getResource("/com/neusoft/nep/GridOfficer/view/GirdOfficerLoginView.fxml");
        //设置加载路径
        fxmlLoader.setLocation(url);
        //加载视图，NODE根节点
        Parent root = fxmlLoader.load();
        //创建一个Scene
        Scene scene = new Scene(root);
        //将scene设置给stage
        stage.setScene(scene);
        //展示舞台
        stage.show();





    }


}